package com.by.bean;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 优惠卷 表
 */
@Data
@TableName("s_coupon")
@ApiModel("优惠券")
public class Coupon {

    @ApiModelProperty("优惠券id")
    int id;

    @ApiModelProperty("创建者")
    String create_by;

    @ApiModelProperty("创建时间")
    String create_time;

    @TableLogic
    @ApiModelProperty(hidden = true)
    int isdel;

    @ApiModelProperty("更新者")
    String update_by;

    @ApiModelProperty("更新时间")
    String update_time;

    @ApiModelProperty("活动结束时间")
    String end_time;

    @ApiModelProperty("活动名称")
    String promotion_name;

    @ApiModelProperty("店铺id")
    String store_id;

    @ApiModelProperty("店铺名称")
    String store_name;

    @ApiModelProperty("活动开始时间")
    String start_time;

    @ApiModelProperty("消费门槛")
    double consume_threshold;

    @ApiModelProperty("折扣")
    double coupon_discount;

    @ApiModelProperty("领取限制")
    int coupon_limit_num;

    @ApiModelProperty("优惠券名称")
    String coupon_name;

    @ApiModelProperty("活动类型")
    String coupon_type;

    @ApiModelProperty("活动描述")
    String description;

    @ApiModelProperty("优惠券类型")
    String get_type;

    @ApiModelProperty("面额")
    double price;

    @ApiModelProperty("发行数量")
    int publish_num;

    @ApiModelProperty("已被领取的数量")
    int received_num;




}
